package com.pap.msg.dto;

import com.pap.base.entity.PapBaseEntity;
import com.pap.base.mybatis.plugin.annotation.MyBatisColumnAnnotation;
import com.pap.base.mybatis.plugin.annotation.MyBatisTableAnnotation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

@ApiModel(description = "消息容器实体(发送接收关联关系)")
public class MsgInfoDTO extends PapBaseEntity implements Serializable {
    /**
     *  消息容器编号,所属表字段为t_msg_info.MSG_INFO_ID
     */
    @MyBatisColumnAnnotation(name = "MSG_INFO_ID", value = "t_msg_info_MSG_INFO_ID", chineseNote = "消息容器编号", tableAlias = "t_msg_info")
    @ApiModelProperty(value = "消息容器编号")
    private String msgInfoId;

    /**
     *  消息编号,所属表字段为t_msg_info.MSG_CONTENT_ID
     */
    @MyBatisColumnAnnotation(name = "MSG_CONTENT_ID", value = "t_msg_info_MSG_CONTENT_ID", chineseNote = "消息编号", tableAlias = "t_msg_info")
    @ApiModelProperty(value = "消息编号")
    private String msgContentId;

    /**
     *  发送者编号,所属表字段为t_msg_info.USER_SEND_ID
     */
    @MyBatisColumnAnnotation(name = "USER_SEND_ID", value = "t_msg_info_USER_SEND_ID", chineseNote = "发送者编号", tableAlias = "t_msg_info")
    @ApiModelProperty(value = "发送者编号")
    private String userSendId;

    /**
     *  发送者名称,所属表字段为t_msg_info.USER_SEND_NAME
     */
    @MyBatisColumnAnnotation(name = "USER_SEND_NAME", value = "t_msg_info_USER_SEND_NAME", chineseNote = "发送者名称", tableAlias = "t_msg_info")
    @ApiModelProperty(value = "发送者名称")
    private String userSendName;

    /**
     *  接收者编号,所属表字段为t_msg_info.USER_RECEIVER_ID
     */
    @MyBatisColumnAnnotation(name = "USER_RECEIVER_ID", value = "t_msg_info_USER_RECEIVER_ID", chineseNote = "接收者编号", tableAlias = "t_msg_info")
    @ApiModelProperty(value = "接收者编号")
    private String userReceiverId;

    /**
     *  接收者名称,所属表字段为t_msg_info.USSR_RECEIVER_NAME
     */
    @MyBatisColumnAnnotation(name = "USSR_RECEIVER_NAME", value = "t_msg_info_USSR_RECEIVER_NAME", chineseNote = "接收者名称", tableAlias = "t_msg_info")
    @ApiModelProperty(value = "接收者名称")
    private String ussrReceiverName;

    /**
     *  已读状态标识	,所属表字段为t_msg_info.READ_FLAG
     */
    @MyBatisColumnAnnotation(name = "READ_FLAG", value = "t_msg_info_READ_FLAG", chineseNote = "已读状态标识	", tableAlias = "t_msg_info")
    @ApiModelProperty(value = "已读状态标识	")
    private String readFlag;

    @Override
    public String getDynamicTableName() {
        return "t_msg_info";
    }

    private static final long serialVersionUID = 1L;

    public String getMsgInfoId() {
        return msgInfoId;
    }

    public void setMsgInfoId(String msgInfoId) {
        this.msgInfoId = msgInfoId;
    }

    public String getMsgContentId() {
        return msgContentId;
    }

    public void setMsgContentId(String msgContentId) {
        this.msgContentId = msgContentId;
    }

    public String getUserSendId() {
        return userSendId;
    }

    public void setUserSendId(String userSendId) {
        this.userSendId = userSendId;
    }

    public String getUserSendName() {
        return userSendName;
    }

    public void setUserSendName(String userSendName) {
        this.userSendName = userSendName;
    }

    public String getUserReceiverId() {
        return userReceiverId;
    }

    public void setUserReceiverId(String userReceiverId) {
        this.userReceiverId = userReceiverId;
    }

    public String getUssrReceiverName() {
        return ussrReceiverName;
    }

    public void setUssrReceiverName(String ussrReceiverName) {
        this.ussrReceiverName = ussrReceiverName;
    }

    public String getReadFlag() {
        return readFlag;
    }

    public void setReadFlag(String readFlag) {
        this.readFlag = readFlag;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", msgInfoId=").append(msgInfoId);
        sb.append(", msgContentId=").append(msgContentId);
        sb.append(", userSendId=").append(userSendId);
        sb.append(", userSendName=").append(userSendName);
        sb.append(", userReceiverId=").append(userReceiverId);
        sb.append(", ussrReceiverName=").append(ussrReceiverName);
        sb.append(", readFlag=").append(readFlag);
        sb.append("]");
        return sb.toString();
    }
}